package com.woniuxy.hrp.service.Serviceimpl;

import com.woniuxy.hrp.entity.*;
import com.woniuxy.hrp.mapper.PayMapper;
import com.woniuxy.hrp.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayServiceImp implements PayService {
    @Autowired
    PayMapper payMapper;
    @Override
    public DoctorPatientMedicine getDPMbyID(int id) {
        DoctorPatientMedicine byId = payMapper.getById(id);

        return byId;
    }

    @Override
    public void updateDPMstatusbyId(int id) {
        payMapper.updateDPMstatusbyId(id);
    }

    @Override
    public DoctorAndPatientAndItem getDPIById(int id) {
        return payMapper.getDPIById(id);
    }

    @Override
    public void updateDPIstatusbyId(int id) {
        payMapper.updateDPIstatusbyId(id);
    }

    @Override
    public List<Reservation> getNatBypid(int id) {
        return payMapper.getNatBypid(id);
    }

    @Override
    public Nat getByrid(int id) {
        return payMapper.getByrid(id);
    }

    @Override
    public Reservation getreservationbyid(int id) {
        return payMapper.getreservationbyid(id);
    }


}
